package com.cray.intelligenthydrologyback.client.domain.entity;

import com.cray.intelligenthydrologyback.client.model.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 摄像头管理对象 hydrologic_camera
 */
@Data
public class HydrologicCamera extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String id;

    /**
     * 编码
     */
    @ApiModelProperty(value = "编码")
    private String cameraCode;

    /**
     * 摄像头名称
     */
    @ApiModelProperty(value = "摄像头名称")
    private String cameraName;

    /**
     * 供应商编码
     */
    @ApiModelProperty(value = "供应商编码")
    private String vendorCode;

    /**
     * 摄像头链接地址
     */
    @ApiModelProperty(value = "流地址")
    private String flowAddress;

    /**
     * 流状态：1有效0无效
     */
    @ApiModelProperty(value = "流状态")
    private String flowState;

    /**
     * 摄像头关联算法code
     */
    @ApiModelProperty(value = "摄像头关联算法")
    private String algorithmCode;

    /**
     * 北斗关联算法code
     */
    @ApiModelProperty(value = "北斗关联算法")
    private String beidoualgorithmCode;

    /**
     * 是否删除，0：是，1：否
     */
    @ApiModelProperty(value = "状态")
    private String delFlag;

    //设备分类
    @ApiModelProperty(value = "所属分类编码")
    private String deviceClassCode;
    //设备分类名称
    @ApiModelProperty(value = "所属分类")
    private String deviceClassName;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("cameraCode", getCameraCode())
                .append("cameraName", getCameraName())
                .append("vendorCode", getVendorCode())
                .append("flowAddress", getFlowAddress())
                .append("flowState", getFlowState())
                .append("algorithmCode", getAlgorithmCode())
                .append("beidoualgorithmCode", getBeidoualgorithmCode())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
